package com.wisdytech.linkdcs.partLife.model;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 备件信息
 * </p>
 *
 * @author chenbin
 * @since 2018-06-05
 */
@TableName("TT_EQ_PART")
public class Part extends Model<Part> {

    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @TableId("PK_ID")
    private String pkId;
    /**
     * 备件编码
     */
    @TableField("PART_CODE")
    private String partCode;
    /**
     * 备件名称
     */
    @TableField("PART_NAME")
    private String partName;
    /**
     * 备件规格
     */
    @TableField("PART_SPECIFICATION")
    private String partSpecification;
    /**
     * 单位
     */
    @TableField("PART_UNIT")
    private String partUnit;
    /**
     * 备件类型
     */
    @TableField("PART_TYPE")
    private String partType;
    /**
     * 是否易损件
     */
    @TableField("QUICK_WEAR_FLAG")
    private Double quickWearFlag;
    /**
     * 是否关键备件
     */
    @TableField("KEY_PART_FLAG")
    private Double keyPartFlag;
    /**
     * 设备型号
     */
    @TableField("MODEL_CODE")
    private String modelCode;
    /**
     * 保质期
     */
    @TableField("SHELF_LIFE")
    private Double shelfLife;
    /**
     * 标准寿命
     */
    @TableField("STD_AGE")
    private Double stdAge;
    /**
     * 寿命单位
     */
    @TableField("LIFE_UNIT")
    private String lifeUnit;
    /**
     * 现有库存
     */
    @TableField("NOW_STOCK")
    private Double nowStock;
    /**
     * 最小库存
     */
    @TableField("MIN_STOCK")
    private Double minStock;
    /**
     * 安全库存
     */
    @TableField("SAFE_STOCK")
    private Double safeStock;
    /**
     * 最大库存
     */
    @TableField("MAX_STOCK")
    private Double maxStock;
    /**
     * 删除标记
     */
    @TableField("DEL_FLAG")
    private String delFlag;
    /**
     * 创建人
     */
    @TableField("CREATE_USER")
    private String createUser;
    /**
     * 创建日期
     */
    @TableField("CREATE_DATE")
    private Date createDate;
    /**
     * 修改人 
     */
    @TableField("UPDATE_USER")
    private String updateUser;
    /**
     * 修改日期
     */
    @TableField("UPDATE_DATE")
    private Date updateDate;


    public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public String getPartCode() {
        return partCode;
    }

    public void setPartCode(String partCode) {
        this.partCode = partCode;
    }

    public String getPartName() {
        return partName;
    }

    public void setPartName(String partName) {
        this.partName = partName;
    }

    public String getPartSpecification() {
        return partSpecification;
    }

    public void setPartSpecification(String partSpecification) {
        this.partSpecification = partSpecification;
    }

    public String getPartUnit() {
        return partUnit;
    }

    public void setPartUnit(String partUnit) {
        this.partUnit = partUnit;
    }

    public String getPartType() {
        return partType;
    }

    public void setPartType(String partType) {
        this.partType = partType;
    }

    public Double getQuickWearFlag() {
        return quickWearFlag;
    }

    public void setQuickWearFlag(Double quickWearFlag) {
        this.quickWearFlag = quickWearFlag;
    }

    public Double getKeyPartFlag() {
        return keyPartFlag;
    }

    public void setKeyPartFlag(Double keyPartFlag) {
        this.keyPartFlag = keyPartFlag;
    }

    public String getModelCode() {
        return modelCode;
    }

    public void setModelCode(String modelCode) {
        this.modelCode = modelCode;
    }

    public Double getShelfLife() {
        return shelfLife;
    }

    public void setShelfLife(Double shelfLife) {
        this.shelfLife = shelfLife;
    }

    public Double getStdAge() {
        return stdAge;
    }

    public void setStdAge(Double stdAge) {
        this.stdAge = stdAge;
    }

    public Double getNowStock() {
        return nowStock;
    }

    public void setNowStock(Double nowStock) {
        this.nowStock = nowStock;
    }

    public Double getMinStock() {
        return minStock;
    }

    public void setMinStock(Double minStock) {
        this.minStock = minStock;
    }

    public Double getSafeStock() {
        return safeStock;
    }

    public void setSafeStock(Double safeStock) {
        this.safeStock = safeStock;
    }

    public Double getMaxStock() {
        return maxStock;
    }

    public void setMaxStock(Double maxStock) {
        this.maxStock = maxStock;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }

	public String getLifeUnit() {
		return lifeUnit;
	}

	public void setLifeUnit(String lifeUnit) {
		this.lifeUnit = lifeUnit;
	}

}
